package itman.spcloud.feign;

import itman.spcloud.feign.impl.FoodFeignClientCallBack;
import itman.spcloud.po.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;



//指定调用的食品微服务名
@FeignClient(name="food-server",fallback= FoodFeignClientCallBack.class)
public interface FoodFeignClient {

    @GetMapping("/FoodController/listFoodByBusinessId/{businessId}")
    public CommonResult listFoodByBusinessId(@PathVariable("businessId") Integer businessId);
}